package com.yuji.aacar.core.cores.event;

/**
 * <li>Date: 2017/3/15
 * <li>Description: 核心的全局的event事件接收类
 */

public class CoreEventBusMessage {
    public String messageCode;//消息代码
    public String message;//短消息
    public Object messageObjects;//传递对象
    public int requestCode; //请求码
    public String methodName; //请求方法名

    public CoreEventBusMessage() {
    }

    public CoreEventBusMessage(String messageCode) {
        this.messageCode = messageCode;
    }

    public CoreEventBusMessage(String messageCode, String message) {
        this.messageCode = messageCode;
        this.message = message;
    }

    public CoreEventBusMessage(String messageCode, String message, Object messageObjects) {
        this.messageCode = messageCode;
        this.message = message;
        this.messageObjects = messageObjects;
    }

    public CoreEventBusMessage(String messageCode, String message, Object messageObjects, int requestCode) {
        this.messageCode = messageCode;
        this.message = message;
        this.messageObjects = messageObjects;
        this.requestCode = requestCode;
    }


    public CoreEventBusMessage(String messageCode, String message, int requestCode, String methodName) {
        this.messageCode = messageCode;
        this.message = message;
        this.requestCode = requestCode;
        this.methodName = methodName;
    }

    public CoreEventBusMessage(String messageCode, String message, Object messageObjects, int requestCode, String methodName) {
        this.messageCode = messageCode;
        this.message = message;
        this.messageObjects = messageObjects;
        this.requestCode = requestCode;
        this.methodName = methodName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(String messageCode) {
        this.messageCode = messageCode;
    }

    public Object getMessageObjects() {
        return messageObjects;
    }

    public void setMessageObjects(Object messageObjects) {
        this.messageObjects = messageObjects;
    }

    public int getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(int requestCode) {
        this.requestCode = requestCode;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    @Override
    public String toString() {
        return "CoreEventBusMessage{" +
                "messageCode='" + messageCode + '\'' +
                ", message='" + message + '\'' +
                ", messageObjects=" + messageObjects +
                ", requestCode=" + requestCode +
                ", methodName='" + methodName + '\'' +
                '}';
    }
}
